package com.ajieee.merge.mapper;

import com.ajieee.merge.entity.finance.Quote;
import com.ajieee.merge.entity.finance.po.StockQuotePO;
import com.ajieee.merge.enums.finance.Exchange;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * @author ajieee
 * @date 2025-10-26
 */
public interface StockQuoteMapper extends BaseMapper<StockQuotePO> {

	void deleteByDataDateAndExchange(@Param("date") LocalDate date,
									 @Param("exchange") Exchange exchange);

	List<StockQuotePO> queryLatestQuotes(@Param("codes") List<String> codes);
}
